From Cppreference
A null-terminated character string, or NTBS, is a character sequence, that consists of nonzero elements, except the last element (the terminating null-character), which has the value zero.
A null-terminated multibyte character string, or NTMBS, is a null-terminated character string, that consists of valid multibyte characters. The string must begin and end with the shift state. A multibyte character string is compatible with regular character strings, that is, can be processed using the same facilities, except for the length calculation.
Functions
|
Character manipulation
|
|
|
|
| checks if a character is alphanumeric (function)
|
|
|
|
| checks if a character is alphabetic (function)
|
|
|
|
| checks if a character is lowercase (function)
|
|
|
|
| checks if a character is an uppercase character (function)
|
|
|
|
| checks if a character is a digit (function)
|
|
|
|
| checks if a character is a hexadecimal character (function)
|
|
|
|
| checks if a character is a control character (function)
|
|
|
|
| checks if a character is a graphical character (function)
|
|
|
|
| checks if a character is a space character (function)
|
|
|
|
| checks if a character is a printing character (function)
|
|
|
|
| checks if a character is a punctuation character (function)
|
|
|
|
| converts a character to lowercase (function)
|
|
|
|
| converts a character to uppercase (function)
|
ASCII values (hex)
| characters
|
iscntrl
iswcntrl
|
isprint
iswprint
|
isspace
iswspace
|
isgraph
iswgraph
|
ispunct
iswpunct
|
isalnum
iswalnum
|
isalpha
iswalpha
|
isupper
iswupper
|
islower
iswlower
|
isdigit
iswdigit
|
isxdigit
iswxdigit
|
| 0 - 8
| 0x00-0x08
| control codes (NUL, etc.)
| ≠0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
| 9 - 13
| 0x09-0x0D
| whitespace (\t,\f,\v,\n,\r)
| ≠0
| 0
| ≠0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
| 14 - 31
| 0x0E-0x1F
| control codes
| ≠0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
| 32
| 0x20
| space
| 0
| ≠0
| ≠0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
| 33 - 47
| 0x21-0x2F
| !"#$%&'()*+,-./
| 0
| ≠0
| 0
| ≠0
| ≠0
| 0
| 0
| 0
| 0
| 0
| 0
|
| 48 - 57
| 0x30-0x39
| 01234567890
| 0
| ≠0
| 0
| ≠0
| 0
| ≠0
| 0
| 0
| 0
| ≠0
| ≠0
|
| 58 - 64
| 0x3a-0x40
| :;<=>?@
| 0
| ≠0
| 0
| ≠0
| ≠0
| 0
| 0
| 0
| 0
| 0
| 0
|
| 65 - 70
| 0x41-0x46
| ABCDEF
| 0
| ≠0
| 0
| ≠0
| 0
| ≠0
| ≠0
| ≠0
| 0
| 0
| ≠0
|
| 71 - 90
| 0x47-0x5A
| GHIJKLMNOPQRSTUVWXYZ
| 0
| ≠0
| 0
| ≠0
| 0
| ≠0
| ≠0
| ≠0
| 0
| 0
| 0
|
| 91 - 96
| 0x5B-0x60
| [\]^_`
| 0
| ≠0
| 0
| ≠0
| ≠0
| 0
| 0
| 0
| 0
| 0
| 0
|
| 97 -102
| 0x61-0x66
| abcdef
| 0
| ≠0
| 0
| ≠0
| 0
| ≠0
| ≠0
| 0
| ≠0
| 0
| ≠0
|
| 103-122
| 0x67-0x7A
| ghijklmnopqrstuvwxyz
| 0
| ≠0
| 0
| ≠0
| 0
| ≠0
| ≠0
| 0
| ≠0
| 0
| 0
|
| 123-126
| 0x7B-0x7E
| {|}~
| 0
| ≠0
| 0
| ≠0
| ≠0
| 0
| 0
| 0
| 0
| 0
| 0
|
| 127
| 0x7F
| backspace character (DEL)
| ≠0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
Conversions to numeric formats
|
|
|
|
| converts a character string to a floating point value (function)
|
|
|
|
| converts a character string to an integer value (function)
|
|
|
|
| converts a character string to an integer value (function)
|
|
|
|
| converts a character string to an unsigned integer value (function)
|
|
|
|
| converts a character string to a floating point value (function)
|
String manipulation
|
|
|
|
| copies one string to another (function)
|
|
|
|
| copies a certain amount of characters from one string to another (function)
|
|
|
|
| concatenates two strings (function)
|
|
|
|
| concatenates a certain amount of characters of two strings (function)
|
|
|
|
| converts a substring so that it can be used by string comparison functions (function)
|
String examination
|
|
|
|
| returns the length of a given string (function)
|
|
|
|
| compares two strings (function)
|
|
|
|
| compares a certain amount of characters of two strings (function)
|
|
|
|
| compares two strings in accordance to the current locale (function)
|
|
|
|
| finds the first occurrence of a character (function)
|
|
|
|
| finds the last occurrence of a character (function)
|
|
|
|
| returns the length of the maximum initial segment that consists of only the characters found in another character string (function)
|
|
|
|
| returns the length of the maximum initial segment that consists of only the characters not found in another character string (function)
|
|
|
|
| finds the first location of any character in one string, in another string (function)
|
|
|
|
| finds the first occurrence of a substring of characters (function)
|
|
|
|
| finds the next token in a character string (function)
|
Memory manipulation
|
|
|
|
| searches an array for the first occurrence of a character (function)
|
|
|
|
| compares two buffers (function)
|
|
|
|
| fills a buffer with a character (function)
|
|
|
|
| copies one buffer to another (function)
|
|
|
|
| moves one buffer to another (function)
|
Miscellaneous
|
|
|
|
| returns a text version of a given error code (function)
|